using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media.Animation;
using System.ComponentModel;

using ViewOnCore.Helper.WPF;

namespace UI.Control
{

    /// <summary>
    /// A specific MDI window used to play the videos.
    /// </summary>
    public class ChildWindowDecoratorVideo : ChildWindowDecorator
    {

        static ChildWindowDecoratorVideo()
        {
            // Used to define the default style of this control.
            DefaultStyleKeyProperty.OverrideMetadata(typeof(ChildWindowDecoratorVideo), new FrameworkPropertyMetadata(typeof(ChildWindowDecoratorVideo)));
        }

        #region SetMouseActive / SetMouseInactive

        public void SetMouseInactive()
        {
            try
            {
                Storyboard storyboard = (Storyboard)FindResource("SetMouseInactive");
                storyboard.Begin(this, this.Template);
            }
            catch (Exception)
            {
            }
        }


        public void SetMouseActive()
        {
            try
            {
                Storyboard storyboard = (Storyboard)FindResource("SetMouseActive");
                storyboard.Begin(this, this.Template);
            }
            catch (Exception)
            {
            }
        }

        #endregion

    }

}
